using UnityEngine;

using Game.Networking.Client;

namespace Game.Networking {
	public class S_JoinSuccessMessageHandler : BaseServerMessageHandler {

		public override ServerPacketID CommandId {
			get {
				return ServerPacketID.JoinSuccess;
			}
		}

		public override void ProcessMessage(byte[] rawCommand) {
			Debug.Log("Client: successfully connected to server.");
			var cc = ClientController.Instance;
			cc.ServerInfo.State = SState.Connected;
		}
	}
}
